gtk4.git
11 years agotextview: add support for underline and strikethrough colors
Christian Hergert [Tue, 10 Feb 2015 00:41:48 +0000 (16:41 -0800)]
textview: add support for underline and strikethrough colors

This commit adds the GtkTextTag:underline-rgba and :strikethrough-rgba
properties and the necessary plumbing to apply these colors in GtkTextLayout.
With this change, you can alter the color of underlines including those
of type PANGO_UNDERLINE_ERROR.

You might want to alter the underline color to differentiate between
spelling and grammer mistakes. In code editors, it is convenient to
differentiate between errors and warnings.

Note that the GtkTextAppearance struct is public ABI and has no spare
room for new fields, so we are resorting to some tricky packing to store
the colors in the unused pixel field of the fg_color and bg_color structs.
This packing is accomplished by the macros in gtktextattributesprivate.h.

Signed-off-by: Christian Hergert <christian@hergert.me>
https://bugzilla.gnome.org/show_bug.cgi?id=402168

11 years agoGtkRange: Fix scroll wheel direction for horizontal ranges
Matthias Clasen [Wed, 18 Mar 2015 02:02:35 +0000 (22:02 -0400)]
GtkRange: Fix scroll wheel direction for horizontal ranges

The expected behavior here is that scrolling up goes towards
larger values, ie to the right. This matches e.g. volume
sliders in gnome-shell.

https://bugzilla.gnome.org/show_bug.cgi?id=737175

11 years agoscrolled window: Use shift to modify scroll direction
Matthias Clasen [Tue, 17 Mar 2015 12:54:45 +0000 (08:54 -0400)]
scrolled window: Use shift to modify scroll direction

It has been a long-standing request to interpret scroll events
with Shift held down as horizontal instead of vertical, and
some applications are already doing this on their own.

https://bugzilla.gnome.org/show_bug.cgi?id=132197

11 years agoHighContrast: Fix calendar selection
Matthias Clasen [Tue, 17 Mar 2015 23:38:18 +0000 (19:38 -0400)]
HighContrast: Fix calendar selection

The selected day was not differentiated from other
days at all. Render it white on black instead.

https://bugzilla.gnome.org/show_bug.cgi?id=746369

11 years agoHighContrast: Fix color chooser marks
Matthias Clasen [Tue, 17 Mar 2015 23:34:15 +0000 (19:34 -0400)]
HighContrast: Fix color chooser marks

The checkmark for the selected color was always black,
making it more or less invisible on dark colors.

https://bugzilla.gnome.org/show_bug.cgi?id=746368

11 years agoHighContrast: catch backdrop:insensitive:active of GtkSwitch
Jakub Steiner [Tue, 17 Mar 2015 22:55:10 +0000 (23:55 +0100)]
HighContrast: catch backdrop:insensitive:active of GtkSwitch

https://bugzilla.gnome.org/show_bug.cgi?id=746358

11 years agoHighContrast: unbreak GtkExpander
Jakub Steiner [Tue, 17 Mar 2015 22:42:11 +0000 (23:42 +0100)]
HighContrast: unbreak GtkExpander

- the open state is checked, not active now

https://bugzilla.gnome.org/show_bug.cgi?id=746370

11 years agoUpdated Swedish translation
Anders Jonsson [Tue, 17 Mar 2015 21:24:09 +0000 (21:24 +0000)]
Updated Swedish translation

11 years agoUpdated Bulgarian translation
Zahari Yurukov [Tue, 17 Mar 2015 21:03:13 +0000 (23:03 +0200)]
Updated Bulgarian translation

11 years agoHightContrast: make tab buttons not shift size
Jakub Steiner [Tue, 17 Mar 2015 17:18:18 +0000 (18:18 +0100)]
HightContrast: make tab buttons not shift size

- only 1px stroke for close buttons in notebook tabs

https://bugzilla.gnome.org/show_bug.cgi?id=746149

11 years agoHighContrast: OSD fixes
Jakub Steiner [Tue, 17 Mar 2015 14:46:22 +0000 (15:46 +0100)]
HighContrast: OSD fixes

- buttons
- labels
- scale trough/slider

https://bugzilla.gnome.org/show_bug.cgi?id=746148

11 years agoAdd to release notes
Matthias Clasen [Tue, 17 Mar 2015 10:53:37 +0000 (06:53 -0400)]
Add to release notes

Mention that GtkSearchEntry now 'eats' some keys.

11 years ago3.15.12
Matthias Clasen [Mon, 16 Mar 2015 20:32:27 +0000 (16:32 -0400)]
3.15.12

11 years agoUpdated Italian translation
Milo Casagrande [Mon, 16 Mar 2015 20:37:06 +0000 (20:37 +0000)]
Updated Italian translation

11 years agoAdwaita: desaturate selected color for backdrop
Jakub Steiner [Mon, 16 Mar 2015 18:40:10 +0000 (19:40 +0100)]
Adwaita: desaturate selected color for backdrop

https://bugzilla.gnome.org/show_bug.cgi?id=746202

11 years agowidget factory: Add an example for an insensitive model button
Matthias Clasen [Mon, 16 Mar 2015 18:05:48 +0000 (14:05 -0400)]
widget factory: Add an example for an insensitive model button

This will make it easier to make insensitive model buttons
appear properly in other themes.

11 years agowayland: Move gtk-shell compatibility version define too
Jonas Ådahl [Mon, 16 Mar 2015 12:00:50 +0000 (20:00 +0800)]
wayland: Move gtk-shell compatibility version define too

https://bugzilla.gnome.org/show_bug.cgi?id=745721

11 years agoDon't pass invalid rectangles to cairo
Matthias Clasen [Mon, 16 Mar 2015 16:51:56 +0000 (12:51 -0400)]
Don't pass invalid rectangles to cairo

This causes pixman warnings, or worse.
Clearly, something is not quite right here, if we end up
redrawing tabs at a time when the allocation is set to (1, 1).
For now, avoid straining the error handling in the lower layers.

https://bugzilla.gnome.org/show_bug.cgi?id=746301

11 years agounrealize: Don't ref twice
Matthias Clasen [Mon, 16 Mar 2015 15:54:38 +0000 (11:54 -0400)]
unrealize: Don't ref twice

After the recent change to add an outermost ref/unref pair,
we can do away with the inner one.

11 years agoinspector: Remove flash timeout from widgets being unmapped
Carlos Garnacho [Mon, 16 Mar 2015 12:57:03 +0000 (13:57 +0100)]
inspector: Remove flash timeout from widgets being unmapped

Otherwise the timeout can keep running, even if the widget is being
destroyed.

11 years agowindow: Protect against popover destruction on ::unmap
Carlos Garnacho [Mon, 16 Mar 2015 12:46:14 +0000 (13:46 +0100)]
window: Protect against popover destruction on ::unmap

On popover_unmap(), perform the gtk_widget_unmap() call last, so the
GtkWindowPopover data is ensured to be alive throughout the function
if the popover widget is destroyed right on ::unmap.

https://bugzilla.gnome.org/show_bug.cgi?id=745829

11 years agowidget: Take a ref during ::unrealize emission
Carlos Garnacho [Mon, 16 Mar 2015 15:20:21 +0000 (16:20 +0100)]
widget: Take a ref during ::unrealize emission

In order to prevent invalid memory access/crashes if the widget is
destroyed in a callback of that signal.

https://bugzilla.gnome.org/show_bug.cgi?id=745829

11 years agowidget: Take a ref during ::unmap emission
Carlos Garnacho [Mon, 16 Mar 2015 12:45:03 +0000 (13:45 +0100)]
widget: Take a ref during ::unmap emission

This ensures the widget data stays live long enough to perform invariants
check after emission if the widget happens to be destroyed on a callback.

https://bugzilla.gnome.org/show_bug.cgi?id=745829

11 years agoUpdated Bulgarian translation
Zahari Yurukov [Sun, 15 Mar 2015 15:03:21 +0000 (17:03 +0200)]
Updated Bulgarian translation

11 years agoreftests: Fix test on HighContrast theme
Benjamin Otte [Mon, 16 Mar 2015 14:44:42 +0000 (15:44 +0100)]
reftests: Fix test on HighContrast theme

We are testing -gtk-icon-style and assume the theme doesn't touch it.
But HighContrast forces symbolic icons. And that breaks the reference
images.

So explicitly set "requested" for everything.

11 years agospinbutton: Fix get_text_area_size for vertical spinbuttons
Benjamin Otte [Mon, 16 Mar 2015 14:18:33 +0000 (15:18 +0100)]
spinbutton: Fix get_text_area_size for vertical spinbuttons

Commit c5905b13b97012fc9e9424718bdce34e0989f512 changed the semantics of
this vfunc and get_entry_size but I only fixed one of them in the
spinbutton subclass.

https://bugzilla.gnome.org/show_bug.cgi?id=746282

11 years agowayland: Don't set the wl_surface user_data twice
Jonas Ådahl [Fri, 13 Mar 2015 07:46:55 +0000 (15:46 +0800)]
wayland: Don't set the wl_surface user_data twice

wl_surface_add_listener already sets the user data pointer, so no need
to do it separately before.

https://bugzilla.gnome.org/show_bug.cgi?id=746141

11 years agowayland: Ignore setting the same cursor theme as was already set
Jonas Ådahl [Fri, 13 Mar 2015 07:43:49 +0000 (15:43 +0800)]
wayland: Ignore setting the same cursor theme as was already set

If the name and size of the theme is identical to the current
configuration, do nothing.

https://bugzilla.gnome.org/show_bug.cgi?id=746141

11 years agowayland: Support scaling of theme based cursors
Jonas Ådahl [Fri, 13 Mar 2015 07:40:18 +0000 (15:40 +0800)]
wayland: Support scaling of theme based cursors

Support scaling of cursors created from themes. The default scale is
always 1, but if the pointer cursor surface enters an output with a
higher scale, load the larger version of the cursor theme and use the
image from that theme.

This assumes the theme size is set to one that fits with an output scale
= 1.

https://bugzilla.gnome.org/show_bug.cgi?id=746141

11 years agowayland: Put interface version defines in a common place
Jonas Ådahl [Fri, 13 Mar 2015 13:38:24 +0000 (21:38 +0800)]
wayland: Put interface version defines in a common place

So far only one, but put it somewhere all files can see it.

https://bugzilla.gnome.org/show_bug.cgi?id=746141

11 years agowayland: Don't set cursor surface scale when we don't have a surface
Jonas Ådahl [Fri, 13 Mar 2015 07:26:51 +0000 (15:26 +0800)]
wayland: Don't set cursor surface scale when we don't have a surface

The setting of the the surface scale even when the surface is not
created from a surface was introduced due to a crash when getting the
buffers when dividing by the scale. The only reason I can see this is
that we get the buffer from a non-existing surface when the wl_cursor
has not yet been set.

Instead, use the name field to avoid trying to use the non-existing
surface, effectively avoiding the division-by-zero that way.

https://bugzilla.gnome.org/show_bug.cgi?id=746141

11 years agoHC: no border for insensitive backdrop buttons
Jakub Steiner [Mon, 16 Mar 2015 11:37:54 +0000 (12:37 +0100)]
HC: no border for insensitive backdrop buttons

https://bugzilla.gnome.org/show_bug.cgi?id=746192

11 years agoUpdated Vietnamese translation
Trần Ngọc Quân [Mon, 16 Mar 2015 07:45:46 +0000 (14:45 +0700)]
Updated Vietnamese translation

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
11 years agowidget-factory: Add an insensitive toolbutton
Matthias Clasen [Mon, 16 Mar 2015 02:54:02 +0000 (22:54 -0400)]
widget-factory: Add an insensitive toolbutton

This will help getting their theming right in HighContrast.

11 years agowidget-factory: Add tab close buttons
Matthias Clasen [Mon, 16 Mar 2015 02:42:44 +0000 (22:42 -0400)]
widget-factory: Add tab close buttons

This will make it easier to fix issues with such buttons
in HighContrast.

11 years agogtk3-demo: Stop using follow-state
Matthias Clasen [Mon, 16 Mar 2015 02:17:03 +0000 (22:17 -0400)]
gtk3-demo: Stop using follow-state

It is no longer needed.

11 years agoprint dialog: Stop using follow-state
Matthias Clasen [Mon, 16 Mar 2015 02:15:08 +0000 (22:15 -0400)]
print dialog: Stop using follow-state

It is no longer needed.

11 years agoapp chooser widget: Stop using follow-state
Matthias Clasen [Mon, 16 Mar 2015 02:14:47 +0000 (22:14 -0400)]
app chooser widget: Stop using follow-state

It is no longer needed.

11 years agoplaces sidebar: Stop using follow-state
Matthias Clasen [Mon, 16 Mar 2015 02:14:24 +0000 (22:14 -0400)]
places sidebar: Stop using follow-state

It is no longer needed.

11 years agowidget-factory: Stop using follow-state
Matthias Clasen [Mon, 16 Mar 2015 02:09:20 +0000 (22:09 -0400)]
widget-factory: Stop using follow-state

The property is no longer needed, cell renderers now
always follow state.

11 years agoUpdated Swedish translation
Josef Andersson [Sun, 15 Mar 2015 21:30:20 +0000 (21:30 +0000)]
Updated Swedish translation

11 years agoUpdated Slovenian translation
Matej Urbančič [Sun, 15 Mar 2015 20:39:22 +0000 (21:39 +0100)]
Updated Slovenian translation

11 years agoUpdated Danish translation
Ask Hjorth Larsen [Sun, 15 Mar 2015 13:46:54 +0000 (14:46 +0100)]
Updated Danish translation

11 years agogemfile: needs add source rubygems.org
Nelson Benítez León [Sat, 14 Mar 2015 10:38:40 +0000 (15:38 +0500)]
gemfile: needs add source rubygems.org

`bundle install` command on fedora 21 was failing
with following message:

Your Gemfile has no gem server sources. If you need
gems that are not already on your machine, add a line
like this to your Gemfile:
source 'https://rubygems.org'

After adding that line it worked again.

https://bugzilla.gnome.org/show_bug.cgi?id=746205

11 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Sat, 14 Mar 2015 16:59:27 +0000 (17:59 +0100)]
Updated POTFILES.in and POTFILES.skip

11 years agoentry: Make code do what it's meant to do
Benjamin Otte [Fri, 13 Mar 2015 17:04:51 +0000 (18:04 +0100)]
entry: Make code do what it's meant to do

With the 3.0 transition, this code went from just querying the entry's
height request to doing a full size request.
Then it got code to revert the features that a full size request does.
And then it grew code that manually computed the baseline.

Avoid this and just do what happened back in the days: Do a regular
height request.

This changes the semantics of the get_frame_size() vfunc wrt its
behavior towards subclasses overwriting the get_height() vfuncs, but I'm
happy to live with that.

11 years agocellrendererpixbuf: Always follow state
Benjamin Otte [Sat, 14 Mar 2015 14:41:34 +0000 (15:41 +0100)]
cellrendererpixbuf: Always follow state

Applications forget to set the follow-state property and then some
themes used a style where normal symbolic icons have the same color as
prelit or selected backgrounds and that suddenly made icons invisible
and who wants that?

https://bugzilla.gnome.org/show_bug.cgi?id=746201

11 years agogtkstacksidebar: fix missing macro
Carlos Soriano [Sat, 14 Mar 2015 12:34:40 +0000 (13:34 +0100)]
gtkstacksidebar: fix missing macro

commit e41cadd835f9c2 forgot to change some macros.

11 years agoUpdated Bosnian translation
Samir Ribic [Sat, 14 Mar 2015 09:08:02 +0000 (09:08 +0000)]
Updated Bosnian translation

11 years agoMore documentation fixes
Matthias Clasen [Sat, 14 Mar 2015 03:24:02 +0000 (23:24 -0400)]
More documentation fixes

With this commit, gtk3-unused.txt is empty (for the first
time in a looong time).

11 years agoGtkStackSidebar: Fix incomplete renaming
Matthias Clasen [Sat, 14 Mar 2015 02:57:32 +0000 (22:57 -0400)]
GtkStackSidebar: Fix incomplete renaming

Some of the boilerplate macros were missing. Oops

11 years agoMore documentation fixes
Matthias Clasen [Sat, 14 Mar 2015 02:01:47 +0000 (22:01 -0400)]
More documentation fixes

11 years agoDocs: Update ignored header list
Matthias Clasen [Sat, 14 Mar 2015 01:59:38 +0000 (21:59 -0400)]
Docs: Update ignored header list

This reduces the warning spam somewhat.

11 years agoDocumentation fixes
Matthias Clasen [Sat, 14 Mar 2015 01:59:19 +0000 (21:59 -0400)]
Documentation fixes

Add a few missing symbols.

11 years agoFix a typo in the docs
Matthias Clasen [Sat, 14 Mar 2015 01:40:27 +0000 (21:40 -0400)]
Fix a typo in the docs

gtk-doc complains about parameter name mismatches.

11 years agoTranslation pa updated for Gnome
A S Alam [Sat, 14 Mar 2015 02:18:41 +0000 (21:18 -0500)]
Translation pa updated for Gnome

11 years agoupdated Danish translation
Ask Hjorth Larsen [Fri, 13 Mar 2015 22:52:58 +0000 (23:52 +0100)]
updated Danish translation

11 years agoupdated Danish translation
Ask Hjorth Larsen [Fri, 13 Mar 2015 22:51:40 +0000 (23:51 +0100)]
updated Danish translation

11 years agomenu button: Improve accessibility
Matthias Clasen [Fri, 13 Mar 2015 22:38:18 +0000 (18:38 -0400)]
menu button: Improve accessibility

Rework the way we assign an accessible name to menu buttons,
to make sure we pick up a label, should the button contain
one, and only override the name with "Menu" as a fallback.

11 years agotestsuite: Set some environment variables
Matthias Clasen [Fri, 13 Mar 2015 21:40:50 +0000 (17:40 -0400)]
testsuite: Set some environment variables

These were set manually in some tests, but not consistently.

11 years agotestsuite: Drop test bus
Matthias Clasen [Fri, 13 Mar 2015 21:39:47 +0000 (17:39 -0400)]
testsuite: Drop test bus

It seems to be buggy in ways that make the test fail
with a critical when the test bus is brought down.
At the same time, drop manual settings of environment
variables that we can set globally.

11 years agoUpdated Bosnian translation
Samir Ribic [Fri, 13 Mar 2015 20:44:00 +0000 (20:44 +0000)]
Updated Bosnian translation

11 years agoUpdated Bosnian translation
Samir Ribic [Fri, 13 Mar 2015 20:43:23 +0000 (20:43 +0000)]
Updated Bosnian translation

11 years agoUpdate Catalan translation
Jordi Mas [Fri, 13 Mar 2015 06:25:47 +0000 (02:25 -0400)]
Update Catalan translation

11 years ago3.15.11
Matthias Clasen [Thu, 12 Mar 2015 02:25:11 +0000 (22:25 -0400)]
3.15.11

11 years agoFix make dist
Matthias Clasen [Thu, 12 Mar 2015 12:10:29 +0000 (08:10 -0400)]
Fix make dist

Add a missing quote.

11 years agoDrop unused files
Matthias Clasen [Thu, 12 Mar 2015 02:26:17 +0000 (22:26 -0400)]
Drop unused files

11 years agoUpdated Slovak translation
Dušan Kazik [Thu, 12 Mar 2015 10:20:08 +0000 (10:20 +0000)]
Updated Slovak translation

11 years agoUpdated Italian translation
Milo Casagrande [Thu, 12 Mar 2015 08:57:43 +0000 (08:57 +0000)]
Updated Italian translation

11 years agoUpdate Catalan translation
Jordi Mas [Thu, 12 Mar 2015 03:36:52 +0000 (23:36 -0400)]
Update Catalan translation

11 years agoRevert "iconhelper: Don't check states"
Benjamin Otte [Thu, 12 Mar 2015 03:31:45 +0000 (04:31 +0100)]
Revert "iconhelper: Don't check states"

This reverts commit 63f59dde3a2740057fb24115b58100af630aa453.

It turns out, the state was not just necessary for style computation,
but also for tracking RTL and LTR. And so it broke the reftests.

11 years agoAdd some reftests related to textview tags
Matthias Clasen [Thu, 12 Mar 2015 01:45:48 +0000 (21:45 -0400)]
Add some reftests related to textview tags

This test shows that a) tags override the text view style and
b) tags override each other in the expected way.

11 years agoiconhelper: Use the screen's icon theme
Benjamin Otte [Thu, 12 Mar 2015 00:14:06 +0000 (01:14 +0100)]
iconhelper: Use the screen's icon theme

... and not the default one.

11 years agoiconhelper: Replace function
Benjamin Otte [Wed, 11 Mar 2015 22:01:05 +0000 (23:01 +0100)]
iconhelper: Replace function

The old one just calls the other one.

11 years agoiconhelper: Move function from style context into only user
Benjamin Otte [Wed, 11 Mar 2015 20:24:05 +0000 (21:24 +0100)]
iconhelper: Move function from style context into only user

11 years agoiconhelper: Don't check states
Benjamin Otte [Wed, 11 Mar 2015 14:03:02 +0000 (15:03 +0100)]
iconhelper: Don't check states

This is the wrong thing to do in today's world.

11 years agoApp Chooser: Fix app icons in HighContrast
Matthias Clasen [Wed, 11 Mar 2015 19:31:35 +0000 (15:31 -0400)]
App Chooser: Fix app icons in HighContrast

We need to follow-state here as well, to make sure the
icons are visible on selected rows.

11 years agoUpdated Korean translation
Changwoo Ryu [Wed, 11 Mar 2015 17:52:52 +0000 (02:52 +0900)]
Updated Korean translation

11 years agogtkentry: Document vfuncs in GtkEntryClass
Philip Withnall [Tue, 10 Mar 2015 07:57:58 +0000 (07:57 +0000)]
gtkentry: Document vfuncs in GtkEntryClass

Clarify that the signal handler vfuncs can be NULL, nothing else can,
and that they all have default implementations.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtktreeselection: Fix an abort on selecting an invalid range
Philip Withnall [Tue, 10 Mar 2015 08:26:34 +0000 (08:26 +0000)]
gtktreeselection: Fix an abort on selecting an invalid range

gtk_tree_selection_real_modify_range() has a g_return_if_fail() if the
start or end paths passed to it do not correspond to real tree nodes.
However, GtkTreePaths inherently do not have to be valid, so it should
be acceptable to call gtk_tree_selection_select_range() with
non-existent paths. Replace the g_return_if_fail() by a silent return,
and add a unit test.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtknotebook: Add more non-NULL checks for cur_page
Philip Withnall [Tue, 10 Mar 2015 08:34:39 +0000 (08:34 +0000)]
gtknotebook: Add more non-NULL checks for cur_page

These were not spotted by scan-build, but from some brief mental
reasoning could potentially be problem areas.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agoGestures: Properly handle weak references
Matthias Clasen [Wed, 11 Mar 2015 10:47:04 +0000 (06:47 -0400)]
Gestures: Properly handle weak references

Every call to g_object_add_weak_pointer must be matched with
a g_object_remove_weak_pointer call, or we will get invalid
writes inside GObject.

https://bugzilla.gnome.org/show_bug.cgi?id=746013

11 years agowayland: Only bind to supported gtk-shell versions
Jonas Ådahl [Fri, 6 Mar 2015 02:51:47 +0000 (10:51 +0800)]
wayland: Only bind to supported gtk-shell versions

The gtk-shell Wayland protocol extension is not meant to be backward
compatible right now, so avoid binding to any version that is not the
one supported.

https://bugzilla.gnome.org/show_bug.cgi?id=745721

11 years agobuild: Fix generating introspection on MacOS
Emmanuele Bassi [Tue, 10 Mar 2015 22:12:32 +0000 (22:12 +0000)]
build: Fix generating introspection on MacOS

We need to filter out platform-specific sources from the files that we
use with the introspection scanner.

In this specific case I could have moved the gtkclipboard-quartz.c and
the gtkdnd-quartz.c files out of the $(gtk_base_c_sources) variable, but
doing a filter-out on the variable itself is more resilient in case we
eventually add files and we forget about the result.

11 years agoinspector: Add some margin to css editor
Matthias Clasen [Tue, 10 Mar 2015 18:07:27 +0000 (14:07 -0400)]
inspector: Add some margin to css editor

Requested in
https://bugzilla.gnome.org/show_bug.cgi?id=745918

11 years agowindow: reset both press/drag gestures when move/resize drag starts
Carlos Garnacho [Tue, 10 Mar 2015 15:38:17 +0000 (16:38 +0100)]
window: reset both press/drag gestures when move/resize drag starts

Now that this is split in two separate gestures, both must be reset
when the WM grabs the pointer. Also, do on resize drags like on move
drags, and claim the gesture before resetting, so the ownership is
properly transferred across any other widgets.

https://bugzilla.gnome.org/show_bug.cgi?id=745969

11 years agoUpdated Swedish translation
Anders Jonsson [Tue, 10 Mar 2015 12:28:37 +0000 (12:28 +0000)]
Updated Swedish translation

11 years agoUpdated Swedish translation
Anders Jonsson [Tue, 10 Mar 2015 12:27:18 +0000 (12:27 +0000)]
Updated Swedish translation

11 years agonotebook: Fix boolean check
Benjamin Otte [Tue, 10 Mar 2015 12:23:06 +0000 (13:23 +0100)]
notebook: Fix boolean check

Commit c352093bdeb2be5390607de13eaf7a21e93272ef swapped the condition
when turning it into a return_if_fail().

11 years agoentrycompletion: Ensure transient_for is set before showing window
Carlos Garnacho [Mon, 9 Mar 2015 14:15:23 +0000 (15:15 +0100)]
entrycompletion: Ensure transient_for is set before showing window

gtk_entry_set_completion() (and _gtk_entry_completion_connect underneath)
may happen when the entry has no toplevel yet. This window acts as the
"parent" for subsurface windows on wayland, and is indispensable to create
its backing wl_subsurface, so this resulted in non-visible popups there.
Fix this by ensuring transient_for is set before showing the popup.

https://bugzilla.gnome.org/show_bug.cgi?id=745463

11 years agogtknotebook: Fix potential use of uninitialised variables
Philip Withnall [Wed, 20 Nov 2013 17:32:10 +0000 (17:32 +0000)]
gtknotebook: Fix potential use of uninitialised variables

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtkprintunixdialog: Fix a potential g_object_unref(NULL) call
Philip Withnall [Tue, 26 Nov 2013 15:08:08 +0000 (15:08 +0000)]
gtkprintunixdialog: Fix a potential g_object_unref(NULL) call

The code above checks whether (printer == NULL), so we’d better do so
here as well.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agoRevert "csd: Drop the GTK_FRAME_EXTENTS requirement"
Matthias Clasen [Tue, 10 Mar 2015 00:48:47 +0000 (20:48 -0400)]
Revert "csd: Drop the GTK_FRAME_EXTENTS requirement"

This reverts commit fb9a6bb6d8d6b60b25c9b9853decbcea938f7863.

In a recent test, I've found that Xfce and Mate now support
this, so they will not be affected by this requirement. And
adding the check back will solve the 'client-side shadow'
problem in KDE.

11 years agostylecontext: Store the right style in the cache
Benjamin Otte [Mon, 9 Mar 2015 22:53:43 +0000 (23:53 +0100)]
stylecontext: Store the right style in the cache

Store the newly computed style, not the old and wrong one.

Fixes HighContrast menuitem color sometimes being black-on-black for
selected items.

11 years agogtkclipboard: Fix a potential g_signal_handler_disconnect(NULL) call
Philip Withnall [Thu, 28 Nov 2013 20:43:16 +0000 (20:43 +0000)]
gtkclipboard: Fix a potential g_signal_handler_disconnect(NULL) call

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtkprintcontext: Fix several potential g_object_[un]ref(NULL) calls
Philip Withnall [Tue, 26 Nov 2013 15:04:45 +0000 (15:04 +0000)]
gtkprintcontext: Fix several potential g_object_[un]ref(NULL) calls

The page_setup of a GtkPrintContext or GtkPrintUnixDialog is nullable,
so all reference count changes to it have to be guarded against NULL
values.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtktreeselection: Fix a potential use of uninitialised variables
Philip Withnall [Wed, 20 Nov 2013 17:39:02 +0000 (17:39 +0000)]
gtktreeselection: Fix a potential use of uninitialised variables

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtktreeselection: Fix potential NULL pointer dereferences
Philip Withnall [Wed, 20 Nov 2013 17:38:01 +0000 (17:38 +0000)]
gtktreeselection: Fix potential NULL pointer dereferences

_gtk_rbtree_first() can potentially return NULL if the RB tree is empty,
which would result in NULL pointer dereferences in the GtkTreeSelection
code. Gracefully handle them.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtktextview: Fix a definite use of an uninitialised variable
Philip Withnall [Wed, 20 Nov 2013 17:33:59 +0000 (17:33 +0000)]
gtktextview: Fix a definite use of an uninitialised variable

This seems to have been a typo in the original code, and allowed access
to virtual_cursor_y when it was uninitialised.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

11 years agogtknotebook: Remove dead variable assignments
Philip Withnall [Wed, 20 Nov 2013 17:32:47 +0000 (17:32 +0000)]
gtknotebook: Remove dead variable assignments

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760